// 库存管理接口
import request from "@/common/request.js";
const api = {
  hr_menology: "/hr_menology/",
  attendance_review: "/attendance_review/",
};

const acMenologyApi = {
  post_attendance_review(data) {
    return request({
      url: api.attendance_review,
      method: "post",
      data,
    });
  },
  delete_attendance_review(id) {
    return request({
      url: api.attendance_review + id + "/",
      method: "delete",
    });
  },
  get_hr_menology(params) {
    return request({
      url: api.hr_menology,
      method: "get",
      params,
    });
  },

  hr_menology_detail(id) {
    return request({
      url: api.hr_menology + id,
      method: "get",
    });
  },

  post_hr_menology(data) {
    return request({
      url: api.hr_menology,
      method: "post",
      data,
    });
  },

  patch_hr_menology(data, id) {
    return request({
      url: api.hr_menology + id + "/",
      method: "patch",
      data,
    });
  },

  delete_hr_menology(id) {
    return request({
      url: api.hr_menology + id + "/",
      method: "delete",
    });
  },
};
export default acMenologyApi;
